#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtCharts>
QT_CHARTS_USE_NAMESPACE
#include <QStandardItemModel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    void inidata();
    void surveydata();
    QStandardItemModel *themodel;
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_survey_triggered();

    void on_action_triggered();

private:
    Ui::MainWindow *ui;
    void iniBarChart();
    void buildBarChartA();
};
#endif // MAINWINDOW_H
